// 会员积分赠送
import request from '@/router/axios'

// 积分赠送新增列表分页查询
export function getCustomerIntegralChageList(obj) {
  return request({
    url: '/eims/customerintegralrecord/getCustomerIntegralRecordInfoPage',
    method: 'get',
    params: obj
  })
}

// 积分赠送新增
export function customerIntegralSave(obj) {
  return request({
    url: '/eims/customerintegralrecord/save',
    method: 'post',
    data: obj
  })
}

// 根据记录ID查询积分变更记录详情
export function customerIntegralChangeDetail(id) {
  return request({
    url: '/eims/customerintegralrecord/'+id,
    method: 'get'
  })
}


// 根据会员卡号查询积分变更记录详情
export function getIntegralChangeInfo(obj) {
  return request({
    url: '/eims/customerintegralrecord/getIntegralChangeInfoPage',
    params: obj
  })
}


// 根据personId获取积分详情
export function getIntegralChangeInfoByPersonId(obj) {
  return request({
    url: '/eims/customerintegralrecord/getIntegralChangeInfoByPersonId',
    method: 'get',
    params: obj
  })
}